package com.example.jikeyoujikeyou.office_sz.model.base;

/*
 * CREATE TABLE `mission` (
  `id` char(18) NOT NULL DEFAULT '' COMMENT '任务ID',
  `title` varchar(100) DEFAULT '' COMMENT '标题',
  `address` varchar(100) DEFAULT NULL,
  `content` varchar(1000) DEFAULT '' COMMENT '内容',
  `company_id` char(18) DEFAULT NULL COMMENT '公司ID',
  `creator_id` char(18) DEFAULT NULL COMMENT '创建者',
  `executor_id` char(18) DEFAULT NULL COMMENT '执行者',
  `vistors` varchar(1000) DEFAULT NULL COMMENT '拜访者',
  `delay_explain` varchar(255) DEFAULT NULL,
  `status` int(11) DEFAULT NULL COMMENT '任务状态，0表示已撤销，1表示未完成，2表示已完成，3表示已延期，4表示延期完成。'',',
  `expect_time` datetime DEFAULT NULL COMMENT '预期完成时间',
  `end_time` datetime DEFAULT NULL,
  `create_time` timestamp DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='任务信息表';
 */

public class BaseMission extends BaseModel {

    public static final Integer CANCLE = 0;
    public static final Integer UNCOMPLATED = 1;
    public static final Integer COMPLATED = 2;
    public static final Integer DELAY = 3;
    public static final Integer DELAY_COMPLATED = 4;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.id
     *
     * @mbggenerated
     */
    private String id;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.title
     *
     * @mbggenerated
     */
    private String title;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.address
     *
     * @mbggenerated
     */
    private String address;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.content
     *
     * @mbggenerated
     */
    private String content;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.company_id
     *
     * @mbggenerated
     */
    private String companyId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.creator_id
     *
     * @mbggenerated
     */
    private String creatorId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.executor_id
     *
     * @mbggenerated
     */
    private String executorId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.vistors
     *
     * @mbggenerated
     */
    private String vistors;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.delay_explain
     *
     * @mbggenerated
     */
    private String delayExplain;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.status
     *
     * @mbggenerated
     */
    private Integer status;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.expect_time
     *
     * @mbggenerated
     */
    private String expectTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.end_time
     *
     * @mbggenerated
     */
    private String endTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column mission.create_time
     *
     * @mbggenerated
     */
    private String createTime;

    /**
     * 构造方法.
     *
     * @param json
     */
    public BaseMission(String json) {
        super(json);
    }

    public String getId() {
        if (null == id) {
            return (String) get("id");
        }
        return id;
    }

    public void setId(String id) {
        this.put("id", id);
        this.id = id;
    }

    public String getTitle() {
        if (null == title) {
            return (String) get("title");
        }
        return title;
    }

    public void setTitle(String title) {
        this.put("title", title);
        this.title = title;
    }

    public String getAddress() {
        if (null == address) {
            return (String) get("address");
        }
        return address;
    }

    public void setAddress(String address) {
        this.put("address", address);
        this.address = address;
    }

    public String getContent() {
        if (null == content) {
            return (String) get("content");
        }
        return content;
    }

    public void setContent(String content) {
        this.put("content", content);
        this.content = content;
    }

    public String getCompanyId() {
        if (null == companyId) {
            return (String) get("companyId");
        }
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.put("companyId", companyId);
        this.companyId = companyId;
    }

    public String getCreatorId() {
        if (null == creatorId) {
            return (String) get("creatorId");
        }
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.put("creatorId", creatorId);
        this.creatorId = creatorId;
    }

    public String getExecutorId() {
        if (null == executorId) {
            return (String) get("executorId");
        }
        return executorId;
    }

    public void setExecutorId(String executorId) {
        this.put("executorId", executorId);
        this.executorId = executorId;
    }

    public String getVistors() {
        if (null == vistors) {
            return (String) get("vistors");
        }
        return vistors;
    }

    public void setVistors(String vistors) {
        this.put("vistors", vistors);
        this.vistors = vistors;
    }

    public String getDelayExplain() {
        if (null == delayExplain) {
            return (String) get("delayExplain");
        }
        return delayExplain;
    }

    public void setDelayExplain(String delayExplain) {
        this.put("delayExplain", delayExplain);
        this.delayExplain = delayExplain;
    }

    public Integer getStatus() {
        if (null == status) {
            return (Integer) get("status");
        }
        return status;
    }

    public void setStatus(Integer status) {
        this.put("status", status);
        this.status = status;
    }

    public String getExpectTime() {
        if (null == expectTime) {
            return (String) get("expectTime");
        }
        return expectTime;
    }

    public void setExpectTime(String expectTime) {
        this.put("expectTime", expectTime);
        this.expectTime = expectTime;
    }

    public String getEndTime() {
        if (null == endTime) {
            return (String) get("endTime");
        }
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.put("endTime", endTime);
        this.endTime = endTime;
    }

    public String getCreateTime() {
        if (null == createTime) {
            return (String) get("createTime");
        }
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.put("createTime", createTime);
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BaseMission{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", address='" + address + '\'' +
                ", content='" + content + '\'' +
                ", companyId='" + companyId + '\'' +
                ", creatorId='" + creatorId + '\'' +
                ", executorId='" + executorId + '\'' +
                ", vistors='" + vistors + '\'' +
                ", delayExplain='" + delayExplain + '\'' +
                ", status=" + status +
                ", expectTime=" + expectTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                '}';
    }
}